//
//  AppDelegate.m
//  QWwyNews
//
//  Created by Amisear on 15/10/2.
//  Copyright © 2015年 Amisear. All rights reserved.
//

#import "AppDelegate.h"
#import <AFNetworkActivityIndicatorManager.h>

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    //设置网络缓存
    NSURLCache *cache = [[NSURLCache alloc]initWithMemoryCapacity:4 * 1024 * 1024 diskCapacity:4 * 1024 * 1024 diskPath:nil];
    
    [NSURLCache setSharedURLCache:cache];
    //设置网络指示器
    //以后使用AFN网络请求的时候状态来就会显示小菊花
    [AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
    
//    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
    
    return YES;
}


@end
